package com.shu.framework.utils;

import com.shu.framework.constant.UserConstants;

/**
 * 校验
 */
public class ValidatorUtil {

    public static boolean isMoble(String moble){
        if (StringUtils.isEmpty(moble)){
            return false;
        }
        return moble.matches(UserConstants.MOBILE_PHONE_NUMBER_PATTERN);
    }
    public static boolean isEmail(String email){
        if (StringUtils.isEmpty(email)){
            return false;
        }
        return email.matches(UserConstants.EMAIL_PATTERN);
    }
}
